package com.example.profile_encryption.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;


import javax.validation.constraints.NotBlank;
import java.math.BigInteger;

@ToString(doNotUseGetters = true)
@Getter
@Setter
@ApiModel(value="Student", description = "学生表")

public class Student {

    @ApiModelProperty("账户序号")
    private BigInteger sno =  BigInteger.ZERO;

    @ApiModelProperty("账户昵称")
    @NotBlank(message = "账户昵称不能为空")
    private String sname;

    @ApiModelProperty("账户年龄")
    @NotBlank(message = "账户年龄不能为空")
    private Integer sage;
}
